#ifndef __NONAME_GETPROC_H__
#define __NONAME_GETPROC_H__

#define NONAME_LIB_USE

#include <ntifs.h>
#include "nm_mem.h"
#include "nm_undoc.h"

class kgetproc {

public:
	kgetproc(PDRIVER_OBJECT DriverObj) {m_LoadedModuleList = (PLIST_ENTRY)DriverObj->DriverSection;}
	
	PVOID GetSystemRoutineAddress(PUNICODE_STRING ModuleName, PUNICODE_STRING SystemRoutineName);

private:
	PVOID FindExportedRoutineByName(PVOID DllBase, PANSI_STRING AnsiImageRoutineName);

	PLIST_ENTRY m_LoadedModuleList;
};

#endif